class CreateFirstAdminUser < ActiveRecord::Migration
  def self.up
    user = User.create({
      :login => 'admin',
      :email => 'none@example.com',
      :password => 'admin',
      :password_confirmation => 'admin',
      :admin => true
    })
  end

  def self.down
    User.find_by_login('admin').destroy
  end
end
